package com.kgc.scd.controller;

import com.kgc.scd.service.ShopHotWordsService;
import com.kgc.scd.vo.ShopHotWordsVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 热词控制类
 */
@Slf4j
@RestController
public class ShopHotWordsController {
    @Autowired
    private ShopHotWordsService shopHotWordsService;
    /**
     * 查询热词库列表
     * @return
     */
    @GetMapping("/lsitword")
    public List<ShopHotWordsVO>lsitword(){
        List<ShopHotWordsVO>lsiwords=shopHotWordsService.getlist();
        log.info("{}",lsiwords);
        return lsiwords;
    }
}
